import type { PageParams } from './commonType'

export interface UserItem {
  createId: number
  deptId: string
  deptName: string
  job: string
  mobile: string
  role: number
  state: number
  userEmail: string
  userId: number
  userImg: string
  userName: string
  _id: string
  createTime: Date
  lastLoginTime: Date
}

export interface Params extends PageParams {
  _id?: string
  userName?: string
  state?: number
}

export interface CreateParams {
  userName: string
  userEmail: string
  mobile?: string
  deptId: string
  job?: string
  state?: number
  roleList: string[]
  userImg: string
}

export interface EditParams extends CreateParams {
  userId: number
}
